package demo09_decorator.decorator;

import demo09_decorator.Component.EncryptionModule;

public class PowCharEncyption extends CharDecorator {

    public PowCharEncyption(EncryptionModule<String> stringEncryptionModule) {
        super(stringEncryptionModule);
    }

    @Override
    public String encypt(String str) {

        return pow(super.encypt(str));
    }


    private String pow(String str){
        return str+str;
    }
}
